using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class VisibilityType
    {

        private string _Hidden;
        private string _ToggleItem;

        public string Hidden
        {
            get
            {
                return _Hidden;
            }
            set
            {
                _Hidden = value;
            }
        }

        public string ToggleItem
        {
            get
            {
                return _ToggleItem;
            }
            set
            {
                _ToggleItem = value;
            }
        }

        public VisibilityType()
        {
        }

        public Rdl.VisibilityType Write()
        {
            Rdl.VisibilityType visibilityType = new Rdl.VisibilityType();
            System.Collections.ArrayList arrayList1 = new System.Collections.ArrayList();
            System.Collections.ArrayList arrayList2 = new System.Collections.ArrayList();
            if (_Hidden != null)
            {
                arrayList1.Add(_Hidden);
                arrayList2.Add(1);
            }
            if (_ToggleItem != null)
            {
                arrayList1.Add(_ToggleItem);
                arrayList2.Add(2);
            }
            visibilityType.Items = arrayList1.ToArray();
            visibilityType.ItemsElementName = (Rdl.ItemsChoiceType9[])arrayList2.ToArray(typeof(Rdl.ItemsChoiceType9));
            arrayList2 = arrayList1 = null;
            return visibilityType;
        }

    } // class VisibilityType

}

